package com.demo.apparel.vo;

import lombok.Data;

import java.util.List;

@Data
public class PageVO<T> {

    private List<T> records;  // 当前页数据列表
    private long total;       // 总记录数
    private int pageNum;      // 当前页码
    private int pageSize;     // 每页记录数

    public PageVO() {}

    public PageVO(List<T> records, long total, int pageNum, int pageSize) {
        this.records = records;
        this.total = total;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}
